/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao04;

/**
 *
 * @author SDKW
 */
public class Cliente {
    public static void main(String[] args) {
        Base yogurtFronzen = new YogurtBananaMaca();
        System.out.println("\n\nSabor: " +
                yogurtFronzen.getNome() + 
                "\nPreço: " +
                yogurtFronzen.getPreco());
        
        yogurtFronzen = new CoberturaChocolate(yogurtFronzen);
        System.out.println("Sabor: " +
                yogurtFronzen.getNome() + 
                "\nPreço: " +
                yogurtFronzen.getPreco());
        
        yogurtFronzen = new CoberturaCaramelo(yogurtFronzen);
        System.out.println("Sabor: " +
                yogurtFronzen.getNome() + 
                "\nPreço: " +
                yogurtFronzen.getPreco());        
        
        yogurtFronzen = new TopoCastanha(yogurtFronzen);
        System.out.println("Sabor: " +
                yogurtFronzen.getNome() + 
                "\nPreço: " +
                yogurtFronzen.getPreco());
        
        yogurtFronzen = new TopoFrutaCristalizada(yogurtFronzen);
        System.out.println("Sabor: " +
                yogurtFronzen.getNome() + 
                "\nPreço: " +
                yogurtFronzen.getPreco());
        
    }
}
